<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/admin.master" AutoEventWireup="true"
    CodeFile="CashBook.aspx.cs" Inherits="Admin_CashBook" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">

    <script type="text/javascript">
        function ClearForm() {
            $('#<%=tb_VoucherDateFrom.ClientID%>').val('');
            $('#<%=tb_VoucherDateTo.ClientID%>').val('');
            return false;
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <%--<script type="text/javascript">
        function ClearForm() {
            //$('#<%tb_AccCode.ClientID%>').text('');
            return false;
        }
    </script>--%>
    <table>
        <tr>
            <td>
                Voucher Date:
            </td>
            <td>
                <asp:TextBox ID="tb_VoucherDateFrom" runat="server" CssClass="text-input datepicker"></asp:TextBox>
            </td>
            <td>
                to
            </td>
            <td>
                <asp:TextBox ID="tb_VoucherDateTo" runat="server" CssClass="text-input datepicker"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Payment Account:
            </td>
            <td colspan="3">
                <asp:DropDownList runat="server" ID="ddl_PaymentAccount" DataValueField="PaymentAccount"
                    DataTextField="Title" DataSourceID="PaymentAccountDataSource" CssClass="text-input large-input" />
                <data:PaymentAccountDataSource ID="PaymentAccountDataSource" runat="server"
			SelectMethod="GetAll"
		>
		</data:PaymentAccountDataSource>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                <asp:Button ID="btn_Print" runat="server" Text="Print" CssClass="button" OnClick="btn_Print_Click" />&nbsp;
                <asp:Button ID="btn_Clear" runat="server" Text="Clear" CssClass="button" OnClientClick="return ClearForm();" />
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:Label ID="lbl_Error" runat="server" Text="" ForeColor="Red" Font-Bold="True"></asp:Label>
            </td>
        </tr>
    </table>
</asp:Content>
